
#ifndef _CMD_DEF_H_
#define _CMD_DEF_H_ 

/*****Customer Parameters*******************************************************************/
#define	CMD_ABSOFFSET		1
#define	CMD_ACC		2
#define	CMD_ACTIVE		3
#define	CMD_ADDR		4
#define	CMD_ANIN1		5
#define	CMD_ANIN1DB		6
#define	CMD_ANIN1ISCALE		7
#define	CMD_ANIN1LPFHZ		8
#define	CMD_ANIN1OFFSET		9
#define	CMD_ANIN1VSCALE		10
#define	CMD_ANIN1ZERO		11
#define	CMD_ANIN2		12
#define	CMD_ANIN2DB		13
#define	CMD_ANIN2ISCALE		14
#define	CMD_ANIN2LPFHZ		15
#define	CMD_ANIN2MODE		16
#define	CMD_ANIN2OFFSET		17
#define	CMD_ANIN2ZERO		18
#define	CMD_ANOUT		19
#define	CMD_ANOUTCMD		20
#define	CMD_ANOUTISCALE		21
#define	CMD_ANOUTLIM		22
#define	CMD_ANOUTMODE		23
#define	CMD_ANOUTVSCALE		24
#define	CMD_AUTOHOME		25
#define	CMD_BAUDRATE		26
#define	CMD_BW		27
#define	CMD_CANBITRATE		28
#define	CMD_CHECKSUM		29
#define	CMD_CLEARFAULTS		30
#define	CMD_CLTUNE		31
#define	CMD_CLTUNEST		32
#define	CMD_CLVD		33
#define	CMD_CLVQ		34
#define	CMD_COMMODE		35
#define	CMD_CONFIG		36
#define	CMD_DEC		37
#define	CMD_DECDIST		38
#define	CMD_DECDIST2		39
#define	CMD_DECSTOP		40
#define	CMD_DECSTOPTIME		41
#define	CMD_DICONT		42
#define	CMD_DIPEAK		43
#define	CMD_DIR		44
#define	CMD_DISMODE		45
#define	CMD_DISPLAYTEST		46
#define	CMD_DISSPEED		47
#define	CMD_DISTIME		48
#define	CMD_DRIVENAME		49
#define	CMD_DRIVESCRIPT		50
#define	CMD_DRIVESCRIPTST		51
#define	CMD_DRIVETEMP		52
#define	CMD_DUMP		53
#define	CMD_ECHO		54
#define	CMD_ELECTANGLE		55
#define	CMD_EMBER		56
#define	CMD_EN		57
#define	CMD_ENCOUTMODE		58
#define	CMD_ENCOUTRES		59
#define	CMD_ENCOUTZPOS		60
#define	CMD_ESTMOTORPARAM		61
#define	CMD_ESTMOTORPARAMST		62
#define	CMD_ESTOPILIM		63
#define	CMD_FACTORYRESTORE		64
#define	CMD_FBGDS		65
#define	CMD_FBGMS		66
#define	CMD_FBITIDX		67
#define	CMD_FBITPRD		68
#define	CMD_FBSCALE		69
#define	CMD_FEEDBACKTYPE		70
#define	CMD_FILTHZ1		71
#define	CMD_FILTHZ2		72
#define	CMD_FILTMODE		73
#define	CMD_FLT		74
#define	CMD_FLTHIST		75
#define	CMD_FLTHISTCLR		76
#define	CMD_FOLD		77
#define	CMD_FRICINEG		78
#define	CMD_FRICIPOS		79
#define	CMD_FRICNVHYST		80
#define	CMD_FRICPVHYST		81
#define	CMD_GEAR		82
#define	CMD_GEARACCTHRESH		83
#define	CMD_GEARFILTAFF		84
#define	CMD_GEARFILTMODE		85
#define	CMD_GEARFILTT1		86
#define	CMD_GEARFILTT2		87
#define	CMD_GEARFILTVELFF		88
#define	CMD_GEARIN		89
#define	CMD_GEARINMODE		90
#define	CMD_GEARLIMITSMODE		91
#define	CMD_GEARMODE		92
#define	CMD_GEAROUT		93
#define	CMD_GET		94
#define	CMD_GETMODE		95
#define	CMD_GETREC		96
#define	CMD_HALLS		97
#define	CMD_HALLSINV		98
#define	CMD_HALLSTYPE		99
#define	CMD_HCFB		100
#define	CMD_HCFB1		101
#define	CMD_HCFB2		102
#define	CMD_HCICMD		103
#define	CMD_HCICMD1		104
#define	CMD_HCICMD2		105
#define	CMD_HIFACEREAD		106
#define	CMD_HOLD		107
#define	CMD_HOMEACC		108
#define	CMD_HOMECMD		109
#define	CMD_HOMEIHARDSTOP		110
#define	CMD_HOMEOFFSET		111
#define	CMD_HOMESPEED1		112
#define	CMD_HOMESPEED2		113
#define	CMD_HOMESTATE		114
#define	CMD_HOMETYPE		115
#define	CMD_HWPEXT		116
#define	CMD_HWPEXTCNTRLR		117
#define	CMD_HWPEXTMACHN		118
#define	CMD_HWPOS		119
#define	CMD_I		120
#define	CMD_ICMD		121
#define	CMD_ID		122
#define	CMD_IFFLPFHZ		123
#define	CMD_IFOLD		124
#define	CMD_IFOLDFTHRESH		125
#define	CMD_IFOLDWTHRESH		126
#define	CMD_IGRAV		127
#define	CMD_ILIM		128
#define	CMD_ILIMACT		129
#define	CMD_IMAX		130
#define	CMD_IN		131
#define	CMD_INDEXFIND		132
#define	CMD_INDEXFINDST		133
#define	CMD_INDEXPFB		134
#define	CMD_INERTIAIDENTEN		135
#define	CMD_INERTIAIDENTEST		136
#define	CMD_INFO		137
#define	CMD_ININV		138
#define	CMD_INMODE		139
#define	CMD_INPOS		140
#define	CMD_INPUTS		141
#define	CMD_IQ		142
#define	CMD_IQCMD		143
#define	CMD_ISTOP		144
#define	CMD_IU		145
#define	CMD_IUOFFSET		146
#define	CMD_IV		147
#define	CMD_IVOFFSET		148
#define	CMD_IZERO		149
#define	CMD_J		150
#define	CMD_K		151
#define	CMD_KCBEMF		152
#define	CMD_KCD		153
#define	CMD_KCDQCOMP		154
#define	CMD_KCFF		155
#define	CMD_KCI		156
#define	CMD_KCIMEMD		157
#define	CMD_KCIMEMQ		158
#define	CMD_KCMODE		159
#define	CMD_KCP		160
#define	CMD_KNLD		161
#define	CMD_KNLI		162
#define	CMD_KNLIDV		163
#define	CMD_KNLIINT		164
#define	CMD_KNLIV		165
#define	CMD_KNLP		166
#define	CMD_KNLUSERGAIN		167
#define	CMD_KPAFRC		168
#define	CMD_KPAFRV		169
#define	CMD_KPD		170
#define	CMD_KPE		171
#define	CMD_KPI		172
#define	CMD_KPISATIN		173
#define	CMD_KPISATOUT		174
#define	CMD_KPP		175
#define	CMD_KPVFR		176
#define	CMD_KVFR		177
#define	CMD_KVI		178
#define	CMD_KVP		179
#define	CMD_LIMSWITCHNEG		180
#define	CMD_LIMSWITCHPOS		181
#define	CMD_LIST		182
#define	CMD_LMJR		183
#define	CMD_LOAD		184
#define	CMD_MB		185
#define	CMD_MBST		186
#define	CMD_MECHANGLE		187
#define	CMD_MEMBIT		188
#define	CMD_MEMF		189
#define	CMD_MEML		190
#define	CMD_MEMQ		191
#define	CMD_MEMW		192
#define	CMD_MENCRES		193
#define	CMD_MENCTYPE		194
#define	CMD_MENCZPOS		195
#define	CMD_MFBDIR		196
#define	CMD_MFBMODE		197
#define	CMD_MFOLD		198
#define	CMD_MFOLDD		199
#define	CMD_MFOLDDIS		200
#define	CMD_MFOLDR		201
#define	CMD_MFOLDT		202
#define	CMD_MICONT		203
#define	CMD_MIFOLD		204
#define	CMD_MIFOLDFTHRESH		205
#define	CMD_MIFOLDWTHRESH		206
#define	CMD_MIPEAK		207
#define	CMD_MJ		208
#define	CMD_MKF		209
#define	CMD_MKT		210
#define	CMD_ML		211
#define	CMD_MLGAINC		212
#define	CMD_MLGAINP		213
#define	CMD_MMASS		214
#define	CMD_MOTORCOMMTYPE		215
#define	CMD_MOTORNAME		216
#define	CMD_MOTORPHASESCAN		217
#define	CMD_MOTORSETUP		218
#define	CMD_MOTORSETUPST		219
#define	CMD_MOTORTYPE		220
#define	CMD_MOVEABS		221
#define	CMD_MOVEINC		222
#define	CMD_MOVEINCCOUNTER		223
#define	CMD_MOVEINCDELAY		224
#define	CMD_MOVEINCDIST1		225
#define	CMD_MOVEINCDIST2		226
#define	CMD_MOVEINCSPEED1		227
#define	CMD_MOVEINCSPEED2		228
#define	CMD_MOVESMOOTHAVG		229
#define	CMD_MOVESMOOTHLPFHZ		230
#define	CMD_MOVESMOOTHMODE		231
#define	CMD_MPHASE		232
#define	CMD_MPITCH		233
#define	CMD_MPOLES		234
#define	CMD_MR		235
#define	CMD_MRESPOLES		236
#define	CMD_MRT		237
#define	CMD_MSGPROMPT		238
#define	CMD_MSPEED		239
#define	CMD_MTANGLC		240
#define	CMD_MTANGLP		241
#define	CMD_MVANGLF		242
#define	CMD_MVANGLH		243
#define	CMD_NLAFFLPFHZ		244
#define	CMD_NLANTIVIBGAIN		245
#define	CMD_NLANTIVIBGAIN2		246
#define	CMD_NLANTIVIBHZ		247
#define	CMD_NLANTIVIBHZ2		248
#define	CMD_NLANTIVIBKNLD		249
#define	CMD_NLANTIVIBLMJR		250
#define	CMD_NLANTIVIBN		251
#define	CMD_NLANTIVIBSHARP		252
#define	CMD_NLANTIVIBSHARP2		253
#define	CMD_NLFILTDAMPING		254
#define	CMD_NLFILTT1		255
#define	CMD_NLMAXGAIN		256
#define	CMD_NLNOTCHBW		257
#define	CMD_NLNOTCHCENTER		258
#define	CMD_NLNOTCH2BW		259
#define	CMD_NLNOTCH2CENTER		260
#define	CMD_NLPEAFF		261
#define	CMD_NLPEDFFRATIO		262
#define	CMD_NLSETTLEMODE		263
#define	CMD_NLTUNE		264
#define	CMD_NLTUNEPARAM		265
#define	CMD_NLTUNEST		266
#define	CMD_NLTUNETIME		267
#define	CMD_OPMODE		268
#define	CMD_OUT		269
#define	CMD_OUTILVL1		270
#define	CMD_OUTILVL2		271
#define	CMD_OUTINV		272
#define	CMD_OUTMODE		273
#define	CMD_OUTPLVL1		274
#define	CMD_OUTPLVL2		275
#define	CMD_OUTPUTS		276
#define	CMD_OUTVLVL1		277
#define	CMD_OUTVLVL2		278
#define	CMD_OVTHRESH		279
#define	CMD_PASSWORD		280
#define	CMD_PCMD		281
#define	CMD_PDEN		282
#define	CMD_PE		283
#define	CMD_PEINPOS		284
#define	CMD_PEINPOSTIME		285
#define	CMD_PELOOP		286
#define	CMD_PEMAX		287
#define	CMD_PFB		288
#define	CMD_PFBBACKUP		289
#define	CMD_PFBBACKUPMODE		290
#define	CMD_PFBOFFSET		291
#define	CMD_PHASEFIND		292
#define	CMD_PHASEFINDANGLE		293
#define	CMD_PHASEFINDGAIN		294
#define	CMD_PHASEFINDI		295
#define	CMD_PHASEFINDMODE		296
#define	CMD_PHASEFINDST		297
#define	CMD_PHASEFINDTIME		298
#define	CMD_PNUM		299
#define	CMD_POSCONTROLMODE		300
#define	CMD_POSLIMMODE		301
#define	CMD_POSLIMNEG		302
#define	CMD_POSLIMPOS		303
#define	CMD_PRBFRQ		304
#define	CMD_PRBMODE		305
#define	CMD_PRBPARAM		306
#define	CMD_PTPTE		307
#define	CMD_PTPVCMD		308
#define	CMD_PWMFRQ		309
#define	CMD_PWMSATRATIO		310
#define	CMD_READY		311
#define	CMD_RECDONE		312
#define	CMD_RECING		313
#define	CMD_RECLIST		314
#define	CMD_RECOFF		315
#define	CMD_RECORD		316
#define	CMD_RECRDY		317
#define	CMD_RECTRIG		318
#define	CMD_RECTRIGLIST		319
#define	CMD_RELAY		320
#define	CMD_RELAYMODE		321
#define	CMD_REMOTE		322
#define	CMD_RESAMPLRANGE		323
#define	CMD_RESBW		324
#define	CMD_SAVE		325
#define	CMD_SININIT		326
#define	CMD_SININITMODE		327
#define	CMD_SININITST		328
#define	CMD_SINPARAM		329
#define	CMD_SLEKFMKT		330
#define	CMD_SLEKFML		331
#define	CMD_SLEKFMR		332
#define	CMD_SLTFORCED		333
#define	CMD_ST		334
#define	CMD_STALLTIME		335
#define	CMD_STALLVEL		336
#define	CMD_STAT		337
#define	CMD_STATUS		338
#define	CMD_STEP		339
#define	CMD_STOP		340
#define	CMD_STOPPED		341
#define	CMD_SWEN		342
#define	CMD_SWENMODE		343
#define	CMD_SYNCSOURCE		344
#define	CMD_T		345
#define	CMD_TF		346
#define	CMD_THERM		347
#define	CMD_THERMCLEARLEVEL		348
#define	CMD_THERMODE		349
#define	CMD_THERMREADOUT		350
#define	CMD_THERMTIME		351
#define	CMD_THERMTRIPLEVEL		352
#define	CMD_THERMTYPE		353
#define	CMD_TMTEMP		354
#define	CMD_TMTURNRESET		355
#define	CMD_TRUN		356
#define	CMD_UNITSLINACC		357
#define	CMD_UNITSLINPOS		358
#define	CMD_UNITSLINVEL		359
#define	CMD_UNITSROTACC		360
#define	CMD_UNITSROTPOS		361
#define	CMD_UNITSROTVEL		362
#define	CMD_UVMODE		363
#define	CMD_UVRECOVER		364
#define	CMD_UVTHRESH		365
#define	CMD_UVTIME		366
#define	CMD_V		367
#define	CMD_VBUS		368
#define	CMD_VBUSREADOUT		369
#define	CMD_VCMD		370
#define	CMD_VD		371
#define	CMD_VE		372
#define	CMD_VELCONTROLMODE		373
#define	CMD_VELDESIGN		374
#define	CMD_VELFILTFRQ		375
#define	CMD_VELFILTMODE		376
#define	CMD_VER		377
#define	CMD_VF		378
#define	CMD_VFI		379
#define	CMD_VH		380
#define	CMD_VLIM		381
#define	CMD_VMAX		382
#define	CMD_VR		383
#define	CMD_WNSERR		384
#define	CMD_WRN		385
#define	CMD_XENCRES		386
#define	CMD_ZERO		387
#define	CMD_HDTUNE		388
#define	CMD_HDTUNEACC	389
#define	CMD_HDTUNEACTIVE	390
#define	CMD_HDTUNECYCLE		391
#define	CMD_HDTUNEDIST		392
#define	CMD_HDTUNEEFFORT	393
#define	CMD_HDTUNEEFFORTMAX	394
#define	CMD_HDTUNEENCSHR	395
#define	CMD_HDTUNELMJR		396
#define	CMD_HDTUNENLFILT	397
#define	CMD_HDTUNENLPEAFF	398
#define	CMD_HDTUNEREFEN		399
#define	CMD_HDTUNEREFERENCE	400
#define	CMD_HDTUNEST		401
#define	CMD_HDTUNESTIFF		402
#define	CMD_HDTUNEVCRUISE	403


#define	CMD_NULL					0
#define CMD_START					1
#define CMD_FINISH					-1	

#define	CMD_SCAN_PORT				1000
#define	CMD_SCAN_AXIS				1001
#define	CMD_CONNECT					1002
#define	CMD_LOAD_PARAM				1011
#define	CMD_WRITE_PARAM				1012
#define	CMD_CONFIG_SIGNAL			1071
#define	CMD_GET_SIGNAL_STATE		1072
#define	CMD_TERMINAL				1041
#define	CMD_START_SCRIPT			1042
#define	CMD_START_TRIGGER			1043
#define	CMD_START_RECORD			1044
#define	CMD_STOP_RECORD				1045
#define	CMD_CLEAR_FAULT				1081
#define	CMD_GET_FAULT				1082
#define	CMD_HDTUNE_STOP				1083

#define	CHECKSUM_DISABLE			0
#define	CHECKSUM_ENABLE				1
#define	GETMODE_ASCII				0
#define	GETMODE_BINARY				3

//
#endif
